<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateClubsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('clubs', function (Blueprint $table) {
            $table->increments('id')->comment('主键ID'); //俱乐部活动表
            $table->tinyInteger('act_type')->unsigned()->comment('活动类型');
            $table->char('title', 60)->comment('活动标题');
            $table->integer('pid')->comment('图片ID');
            $table->boolean('status')->comment('活动状态');
            $table->integer('cid')->comment('活动内容ID');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('clubs');
    }
}
